Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uv init . #5330

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Fix uv init . #5330

merged 2 commits into from
Jul 23, 2024

Conversation

eth3lbert
Copy link
Contributor

Summary

This PR avoids an Invalid package name error that occurs when using uv init .. This is achieved by slightly reorganizing the code block to determine the name after the path is canonicalized. The dot path is expanded to the current directory, and the file_name then works as expected.

Resolve #5329 .

eth3lbert and others added 2 commits July 23, 2024 13:54
Otherwise we panic when we are in `/`.
@konstin konstin added the bug Something isn't working label Jul 23, 2024
@charliermarsh charliermarsh merged commit df7a733 into astral-sh:main Jul 23, 2024
53 of 54 checks passed
@charliermarsh charliermarsh added the preview Experimental behavior label Jul 23, 2024
@eth3lbert eth3lbert deleted the init-dot branch July 23, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv init fails with dot as path argument
3 participants